﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using nwrole.toolbox.sync.ServiceHost;
using nwrole.toolbox.sync;

namespace nwrole.toolbox.sync.DestinationConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            System.Console.WriteLine("Starting Sync Destination Service");
            try
            {
                SyncDestinationServiceHost destHost = new SyncDestinationServiceHost();
                destHost.Start(SyncSettings.SyncDestinationConnInfo, SyncSettings.DestDbConnectionString);
            }
            catch (Exception e)
            {
                System.Console.WriteLine(e.ToString());
            }

            System.Console.WriteLine("Started (press any key to exit)");
            System.Console.ReadKey();
            System.Console.WriteLine("Done.");
        }
    }
}
